// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import 'animate.css/source/animate.css'
import { VueAxios } from './utils/request'
import bootstrap from './core/bootstrap'
import moment from 'moment';

import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import './components/global.less'
import { Dialog } from '@/components'
//引入echarts
import * as echarts from 'echarts'
//vue全局注入echarts
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false
require('moment/locale/zh-cn');
moment.locale('zh-cn');
// mount axios Vue.$http and this.$http
Vue.prototype.$moment = moment;
Vue.use(VueAxios)

Vue.use(Dialog)

new Vue({
  router,
  store,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
